package com.dzsw;

import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        File file = new File("D:/Shipping Schedule.xlsx");
        Workbook wb = WorkbookFactory.create(file);
        Sheet sheet = wb.getSheetAt(0);
        BufferedImage image = new BufferedImage(sheet.getLastRowNum() * 15, sheet.getRow(0).getLastCellNum() * 70, BufferedImage.TYPE_INT_RGB);
        Graphics2D graphics = image.createGraphics();

    }
}